import request from "@/utils/requestPro.js";


// 查询合同年份
export function getSigningYearCountsAPi() {
	return request({
		url: '/admin/contract/signing/getSigningYearCounts',
		method: 'get',
	});
}
// 查询合同详情
export function getSigningInfoAPi(params) {
	return request({
		url: '/admin/contract/signing/getSigningPage',
		method: 'get',
		params,
	});
}




// 查询签署状态

export function getSigningStatusCountsAPi(data) {
	return request({
		url: '/admin/contract/signing/getSigningStatusCounts',
		method: 'get',
		data,
	});
}

// 正确的e签宝链接

export function getSignFlowUrlApi(params) {
	return request({
		url: '/admin/contract/signing/getSignFlowUrl',
		method: 'get',
		params,
	});
}

// 过期更新下载链接
export function updateSigningUrlApi(params, data) {
	return request({
		url: '/admin/contract/signing/updateSigningUrl',
		method: 'post',
		params,
		data,
	});
}



// 资质证明  商户认证


//回显数据

export function getAutoApi() {
	return request({
		url: '/admin/contract/auto/getAuto',
		method: 'get',
	});
}

// 上传数据

export function legalAutoApi(data) {
	return request({
		url: '/admin/contract/auto/legalAuto',
		method: 'post',
		data,
	});
}